package com.movie.ticket.sale.movieassembly;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient//启动服务发现客户端
@ComponentScan("com.movie")
@MapperScan("com.movie.ticket.sale.movieassembly.mapper")
@EnableCaching
@EnableScheduling   //开启定时任务
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class MovieAssemblyApplication {

    public static void main(String[] args) {

        SpringApplication.run(MovieAssemblyApplication.class, args);
    }

}
